package practice;

public class CarTest {
    public static void main(String[] args) {
        //--------第一遍--------
        Car xd = new Car("现代","红色",5000);
        xd.start();
        xd.run();
        xd.stop();

        Car tsl = new Car("特斯拉","白色",1000);
        tsl.start();
        tsl.run();
        tsl.stop();

        Car jl = new Car("吉利","绿色",500);
        jl.start();
        jl.run();
        jl.stop();


        //-------第二遍---------
        Car dz = new Car("大众","紫色",8988);
        xd.start();
        xd.run();
        xd.stop();

        Car bc = new Car("奔驰","白色",5012);
        xd.start();
        xd.run();
        xd.stop();

        Car hq = new Car("红旗","蓝色",3020);
        xd.start();
        xd.run();
        xd.stop();
    }
}
